package com.tyqx.hashchainbiz.service.impl;

import com.tyqx.hashchainbean.module.WxCompany;
import com.tyqx.hashchainbiz.service.WxCompanyService;
import com.tyqx.hashchaindao.mapper.WxCompanyMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @program: hashchain-spring
 * @description:
 * @author: Mr.Li
 * @create: 2020-10-30 15:01
 **/
@Service("wxCompanyService")
public class WxCompanyServiceImpl implements WxCompanyService {

    @Resource
    private WxCompanyMapper wxCompanyMapper;

    @Override
    public int insertWxCompany(WxCompany wxCompany) {
        return wxCompanyMapper.insertWxCompany(wxCompany);
    }

    @Override
    public WxCompany queryWxCompanyById(int id) {
        return wxCompanyMapper.queryWxCompanyById(id);
    }

    @Override
    public List<WxCompany> queryWxCompanyList() {
        return wxCompanyMapper.queryWxCompanyList();
    }

    @Override
    public List<WxCompany> queryWxCompanyByOpenId(String openId) {
        return wxCompanyMapper.queryWxCompanyByOpenId(openId);
    }
}
